From: Jasper St. Pierre Date: Thu, 18 Jul 2013 17:14:48 +0000 (-0400) Subject: lookingGlass: Ensure that we don't divide by zero X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~3826 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=0e6625f7193932e925d6e3f08dafcb8040b96c44;p=gnome-shell.git lookingGlass: Ensure that we don't divide by zero Cap the lower limit of the looking glass tween at 0.5. https://bugzilla.gnome.org/show_bug.cgi?id=704448 --- diff --git a/js/ui/lookingGlass.js b/js/ui/lookingGlass.js index 98e6addde..30493124f 100644 --- a/js/ui/lookingGlass.js +++ b/js/ui/lookingGlass.js @@ -1150,7 +1150,7 @@ const LookingGlass = new Lang.Class({ Main.popModal(this._entry); - Tweener.addTween(this.actor, { time: 0.5 / St.get_slow_down_factor(), + Tweener.addTween(this.actor, { time: Math.max(0.5 / St.get_slow_down_factor(), 0.5), transition: 'easeOutQuad', y: this._hiddenY, onComplete: Lang.bind(this, function () {